<template>
  <div class="m-2 bg-white p-6">
    <div class="flex px-2 gap-x-4 flex-wrap justify-start items-center">
      <!--      <form-config-input-->
      <!--        :config-key="ConfigKeyCompanyWebTitle"-->
      <!--        class="w-1/5"-->
      <!--        label="站点标题:"-->
      <!--        @val-change="configValChange"-->
      <!--      ></form-config-input>-->
    </div>
  </div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import { requestSysCommonSaveConfigs } from "@/api/modules/sysCommon";
import { ResultData } from "@/api/interface";
import { RespOk } from "@/constant/codes";
import { ElMessage } from "element-plus";

//保存当前所有要的配置项
const formData = ref<any>({} as any);

//配置值设置（回调设置）
const configValChange = (k: string, v: any) => {
  formData.value[k] = v;
  console.log(formData, " ---formData");
};

const saveConfig = () => {
  requestSysCommonSaveConfigs(formData.value).then((res: ResultData) => {
    if (res.code == RespOk) {
      ElMessage.success("已提交保存,可刷新页面查看结果");
    }
  });
};
</script>
<style lang="scss" scoped></style>
